WPF and Silverlight Edition Basic Library > TreeView > TreeView Quick Start > Step 1 of 3: Creating a C1TreeView Application |
In this step, you'll create an application in Visual Studio using TreeView for WPF and Silverlight.
Complete the following steps:
New Project Dialog Box
- WPF: C1.WPF.4.dll
- Silverlight: C1.Silverlight.5.dll
Navigate to the Toolbox and double-click the C1TreeView icon to add the TreeView control
Note: The C1.WPF or C1.Silverlight.5 namespace and <c1:C1TreeView></c1:C1TreeView> tags have been added to the project.
XAML Copy Code <Grid> <c1:C1TreeView></c1:C1TreeView> </Grid>
XAML Copy Code<c1:C1TreeView Name="Tree">
By giving the control a unique identifier, you'll be able to access the C1TreeView control in code.
You've successfully created a WPF or Silverlight application containing a C1TreeView control. In the next step, you will add C1TreeViewItems to the C1TreeView control.